package com.ruoyi.management_controller.suggestions.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.management_controller.suggestions.mapper.SuggestionsMapper;
import com.ruoyi.management_controller.suggestions.domain.Suggestions;
import com.ruoyi.management_controller.suggestions.service.ISuggestionsService;

/**
 * 代表建议Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-15
 */
@Service
public class SuggestionsServiceImpl implements ISuggestionsService 
{
    @Autowired
    private SuggestionsMapper suggestionsMapper;

    /**
     * 查询代表建议
     * 
     * @param id 代表建议主键
     * @return 代表建议
     */
    @Override
    public Suggestions selectSuggestionsById(Long id)
    {
        return suggestionsMapper.selectSuggestionsById(id);
    }

    /**
     * 查询代表建议列表
     * 
     * @param suggestions 代表建议
     * @return 代表建议
     */
    @Override
    public List<Suggestions> selectSuggestionsList(Suggestions suggestions)
    {
        return suggestionsMapper.selectSuggestionsList(suggestions);
    }

    /**
     * 新增代表建议
     * 
     * @param suggestions 代表建议
     * @return 结果
     */
    @Override
    public int insertSuggestions(Suggestions suggestions)
    {
        return suggestionsMapper.insertSuggestions(suggestions);
    }

    /**
     * 修改代表建议
     * 
     * @param suggestions 代表建议
     * @return 结果
     */
    @Override
    public int updateSuggestions(Suggestions suggestions)
    {
        return suggestionsMapper.updateSuggestions(suggestions);
    }

    /**
     * 批量删除代表建议
     * 
     * @param ids 需要删除的代表建议主键
     * @return 结果
     */
    @Override
    public int deleteSuggestionsByIds(Long[] ids)
    {
        return suggestionsMapper.deleteSuggestionsByIds(ids);
    }

    /**
     * 删除代表建议信息
     * 
     * @param id 代表建议主键
     * @return 结果
     */
    @Override
    public int deleteSuggestionsById(Long id)
    {
        return suggestionsMapper.deleteSuggestionsById(id);
    }
}
